<%@ page errorPage="/error.jsp" pageEncoding="UTF-8" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>

<c:if test="${param.error != null}">
	<style type="text/css"> #errorContainer {display: block !important;} </style>
</c:if>

<section id="right">
            <div id="login" class="box shadow all_corner">
                <h1>Đăng nhập</h1>
                <div id="errorContainer"><b><font color="red">Sai mật khẩu hoặc Tài khoản không tồn tại!</font></b></div>
                <form action="<spring:url value="/j_spring_security_check"/>" 
                	method="post">
                    <label for="j_username">Tên truy cập</label>
                    <input type="text" name="j_username" id="j_username" size="22" class="input shadow" pattern="^[a-zA-Z0-9]{4,20}$" minlength="4" maxlength="20" required="required" />
                    <label for="j_password">Mật khẩu</label>
                    <input type="password" name="j_password" id="j_password" size="22" class="input shadow" pattern="^[a-zA-Z0-9~!@#$%^&*)(.]{4,20}$" minlength="4" maxlength="20" required="required" title="Mật khẩu có phân biệt hoa thường và ký tự đặc biệt." />
                    <input type="submit" name="signin" value="Đăng nhập" class="button shadow ml5" />
                    <div class="aRegister"><a href="<spring:url value="/account/forGotPwd.htm" />">Quên mật khẩu</a> | 
                </form>
            </div><!-- #login -->
</section><!-- #right -->
<div class="clear"></div>